package com.lyeducation.entities.course.middle;

import com.lyeducation.entities.base.AbstractPersistable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户对课程评分
 */
@Entity
@Table(name = "user_course_score")
public class UserCourseScoreEntity extends AbstractPersistable {
  private int score;
  private String userId;
  private String courseId;

  @Column(name = "score", length = 11)
  public int getScore() {
    return score;
  }

  public void setScore(int score) {
    this.score = score;
  }

  @Column(name = "userId", nullable = false, length = 18)
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  @Column(name = "courseId", nullable = false, length = 18)
  public String getCourseId() {
    return courseId;
  }

  public void setCourseId(String courseId) {
    this.courseId = courseId;
  }
}
